package com.ctshk.rpc.user.entity.es;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.data.elasticsearch.annotations.DateFormat;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * <p>
 *  酒店订单
 * </p>
 *
 * @author 李新科
 * @date 2021/5/27 20:39
 */
@Data
@ApiModel(value="酒店订单ES缓存实体")
@Accessors(chain = true)
public class HotelOrderEs implements Serializable {

    @ApiModelProperty(value = "酒店-酒店名称")
    @Field(type = FieldType.Text)
    private String hotelName;

    @ApiModelProperty(value = "酒店-英文酒店名称")
    @Field(type = FieldType.Text)
    private String hotelEnName;

    @ApiModelProperty(value = "酒店-入住日期")
    @Field(type = FieldType.Date,format = DateFormat.date)
    private LocalDate checkInDate;

    @ApiModelProperty(value = "酒店-离店日期")
    @Field(type = FieldType.Date,format = DateFormat.date)
    private LocalDate checkOutDate;
}
